include "Errors.thrift"
namespace java com.emagsoftware.partake.global
struct GameComment {
      1: optional i64 id,
      2: required string serviceId,
      3:optional string serviceName,
      4: required i64 userId,
      5: optional string userTel,
      6: optional string nikeName,
      7: optional i32 starLevel,
      8: optional string clientVersion,
      9: optional string userAgent,
      10: optional string userChannel,
      11: optional string clientPlatform,
      12: required string commentContent,
      13:optional i64 commentTime,
      14: optional string verifyUser,
      15: optional i64 verifyTime,
      16: optional i32 verifyResult,
      17: optional i32 calculated ,
      18: optional string model,
      19: required i32 commentOrigin,
      20: optional string userIp,
      21: optional string commentPlaceFlag,
}

struct GameCommentPageResult  {
      1: required  list<GameComment> commentList,
      2: required  i32  total
}
service GameCommentClient{
     void saveGameComment(
                        1: required  GameComment  gameComment,
     )throws (1: Errors.ServiceRuntimeException serviceRuntimeException),
     GameCommentPageResult queryGameComments(
                         1: required string serviceId,
                         2: required list<string> commentOrigins,
                         3: optional i32 offset,
                         4: optional i32  max
     ) throws (1: Errors.ServiceRuntimeException serviceRuntimeException) ,
     bool  isCommittedComment(
                         1: required i64 userId,
                         2: required string serviceId,
                         3: required string commentOrigin
     ) throws (1: Errors.ServiceRuntimeException serviceRuntimeException)

}